.DataTableViewQueryExamples {
    .filter-selection-section {
        .Button.active {
            background-color: var(--color-accent-lightest-0);
            color: var(--color-accent-dark);
        }
    }

    .DataTableViewQueryExamples-item {
        position: relative;
        margin-top: 24px;

        .DataTableViewQueryExamples-header {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: flex-start;
        }
        .DataTableViewQueryExamples-query {
            height: auto;
            max-height: 360px;
            overflow-y: auto;
            border-radius: var(--border-radius);
        }

        .DataTableViewQueryExamples-info {
            text-align: right;
            margin-right: 8px;
            margin-top: 8px;
            span:first-child {
                color: var(--text-light);
            }
            span:last-child {
                font-weight: var(--bold-font);
            }
        }
    }
}

.DataTableViewQueryUsers,
.DataTableViewQueryEngines,
.DataTableViewQueryConcurrences {
    .query-filter-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 12px;
        margin-left: 16px;

        .Button {
            margin-bottom: 8px;
            margin-left: 0px;
            margin-right: 12px;

            &:hover {
                .UserBadge .username,
                .Tag {
                    background-color: var(--bg-hover);
                }
            }

            &.active {
                .UserBadge .username {
                    background-color: var(--color-accent-lightest-0);
                    color: var(--color-accent-dark);
                }
                .Icon svg {
                    color: var(--color-accent-dark);
                }
                &:hover {
                    background-color: var(--color-accent-lightest);
                    .UserBadge .username,
                    .Tag {
                        background-color: var(--color-accent-lightest);
                    }
                }
            }

            .UserBadge .username {
                margin-right: 0px;
            }
            .Tag + .Tag {
                margin-left: 0px;
            }
        }
    }
}
